文章目录
  1. 1. centos常见错误 Failed to set locale, defaulting to C - 梦里是客 - 51CTO技术博客
  2. 2. centos常见错误 Failed to set locale, defaulting to C

centos常见错误 Failed to set locale, defaulting to C - 梦里是客 - 51CTO技术博客

someTrouble centOS locale

centos常见错误 Failed to set locale, defaulting to C

centos常见错误 Failed to set locale, defaulting to C 

错误描述:

当在centos中使用yum命令时,输出错误:

Failed to set locale, defaulting to C 

用locale检测,出现如下提示:

locale:Cannot set LC_CTYPE to default locale: No such file or directory locale:Cannot set LC_MESSAGES to default locale: No such file or directory locale:Cannot set LC_ALL to default locale: No such file or directory 

错误分析:

查询可知locale是用来设置语言环境的,故此需要查看并正确设置locale

解决方案:

echo "export LC_ALLen_US.UTF-8"    /etc/profile 

执行命令后重新登录即可!

本文出自 “梦里是客” 博客,请务必保留此出处http://meidaoli.blog.51cto.com/5623337/1087711

文章目录
  1. 1. centos常见错误 Failed to set locale, defaulting to C - 梦里是客 - 51CTO技术博客
  2. 2. centos常见错误 Failed to set locale, defaulting to C